/*
 * Copyright 2008-2009 Nobject.org, All Rights Reserved.
 * 
 * This software is licensed under LGPL license.
 * See terms of license at gnu.org.
 * 
 * For more information,visit:
 * 
 * http://www.nobject.org
 */
package org.nobject.common.code.model.javascript;

/**
 * Param Model class
 * 
 * @author bianrongjun
 * @version 1.0
 */
public class ParamModel {

	/**
	 * Param Name
	 */
	private String paramName;

	/**
	 * Param Comment
	 */
	private String paramComment;

	/**
	 * Constructor
	 */
	public ParamModel() {

	}

	/**
	 * Constructor
	 * 
	 * @param paramName
	 * @param paramType
	 */
	public ParamModel(String paramName) {
		this.paramName = paramName;
	}

	/**
	 * Constructor
	 * 
	 * @param paramName
	 * @param paramType
	 * @param paramComment
	 */
	public ParamModel(String paramName, String paramComment) {
		this.paramName = paramName;
		this.paramComment = paramComment;
	}

	/**
	 * Get Param Name
	 * 
	 * @return
	 */
	public String getParamName() {
		return paramName;
	}

	/**
	 * Set Param Name
	 * 
	 * @param paramName
	 */
	public void setParamName(String paramName) {
		this.paramName = paramName;
	}

	/**
	 * Get Param Comment
	 * 
	 * @return
	 */
	public String getParamComment() {
		return paramComment;
	}

	/**
	 * Set Param Comment
	 * 
	 * @param paramComment
	 */
	public void setParamComment(String paramComment) {
		this.paramComment = paramComment;
	}

	/**
	 * Check
	 * 
	 * @return
	 */
	public boolean check() {
		if (paramName != null && !paramName.equals("")) {
			return true;
		} else {
			return false;
		}
	}

}
